home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 002a / be310.zip / CINDENT2.CHS < prev    next >
Text File  |  1993-06-01  |  946b  |  25 lines

  1. /* CHESS FUNCTION(S): CINDENT2.CHS
  2. /*              DATE: 5/15/93
  3. /*            AUTHOR: C. Schanck
  4. /*
  5. /*       DESCRIPTION: This program file will convert from C mode
  6. /* indention #1 to C mode indention #2.  It is very useful when
  7. /* used in conjunction with 'global' to change a whole set of files
  8. /* to a uniform indention style.
  9. {  
  10.    /* you need to have Cmode #2 turned on         
  11.    int i;                           
  12.    set_display(0);   /* turn the display off
  13.    while(Search("~[/~{][{][ ]*$~ ~fr~ "))   /* while you find a left bracket
  14.    {
  15.       End_line();    /* go to the end
  16.       Carriage();    /* hit return
  17.       Del_line();    /* delete the blank line
  18.       Begin_line();  /* go to the beginning
  19.       i=i+1;
  20.       if((i%25)==0)     /* keep the user apprised of the situation
  21.          msg("%ld instances changed...",i);
  22.    }            
  23.    update_display();    /* clean up the display
  24.    set_display(1);
  25. }